package com.cfets.annualAssessment.entity;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by liusonglin on 2016/11/21.
 */
@Data
@Table(name = "t_customer")
public class Customer extends BaseEntity {
    @NotEmpty(message = "姓名不能为空")
    private String name;

    private int gender;//1表示女,2表示男 默认为1


    @NotNull(message = "出生年月不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private int cardType;//证件类型,1 身份证,2.护照,3,港澳台证件,4其他,默认1

    @NotEmpty(message = "证件号码不能为空")
    private String cardNum;

    @NotEmpty(message = "资格证书号码不能为空")
    private String credentialsNum;

    @NotEmpty(message = "手机号码不能为空")
    private String phone;

    @NotEmpty(message = "学位不能为空")
    private String degree;

    @NotEmpty(message = "最高学历不能为空")
    private String highestEducation;

    @NotEmpty(message = "最高学历院校不能为空")
    private String highestEducationCollege;

    @NotEmpty(message = "专业不能为空")
    private String major;

    @NotNull(message = "毕业时间不能为空")
    private Date graduateDate;

    private int angentType;//1.本币交易成员；2.非本币交易成员；3.无机构 默认1

    @NotEmpty(message = "机构名称不能为空")
    private String angentName;

    @NotEmpty(message = "部门不能为空")
    private String department;//部门表,不关联

    @NotEmpty(message = "岗位不能为空")
    private String post;

    private String postType;//待定

    private String tradeClass;

    @NotEmpty(message = "职务不能为空")
    private String duty;

    @NotEmpty(message = "办公电话不能为空")
    private String officePhone;

    @NotEmpty(message = "E-mail不能为空")
    private String email;

    private String qq;

    @NotEmpty(message = "传真不饿能够为空")
    private String fax;

    @NotEmpty(message = "机构地址不能为空")
    private String agentAddress;

    @NotEmpty(message = "邮编不能为空")
    private String postcode;

//    private Date postTime;
}
